$(document).ready(function() {
	$("#checkboxall").click(function() {
		var checked_status = this.checked;
		$("input[name=checkall]").each(function() {
			this.checked = checked_status;
		});
	});
});

function productAdd() {
	$.post("productAction!save", 
	{name: $("#name").val(),
	code: $("#code").val(),
	type: $("#type").val(),
	piecerate: $("#piecerate").val(),
	comment: $("#comment").val(),
	pic: $("#pic").val(),
	size: $("#size").val(),
	color: $("#color").val()}
	,function(response) {
		$("#rightside").html(response);
	});
}